/**
 * Created by solaman on 2017/5/4.
 */
let app = new Vue({
    el: '#root',
    data: {
        tasks:[
            {description:'Go to the store', completed: true},
            {description:'Go to work', completed: false},
            {description:'Go to school', completed: true},
            {description:'Make dinner', completed: false}
        ]
    },
    computed:{
        incompleteTasks(){

            return this.tasks.filter(task => !task.completed);
        }
    }

})